 var FullScreenScroll = (function($,window,undefined){
 		function FullScreenScroll(opt){
 			this.init(opt);
 		}
 		FullScreenScroll.prototype.init=function(opt){
 			var _this = this;
 			_this.scrollElement = $(opt.scrollElement);
 			_this.scrollContent = $(opt.scrollContent);
 			_this.scrollPos = [];/* 所有滚动元素的位置集合 */
 			_this.isScroll = false;/* 判断是否正在进行滚动动画 */
 			_this.getScrollElePos();console.log(_this.scrollContent)
 			_this.scrollContent.on("scroll",_this.toScroll.bind(_this));
 		}
 		FullScreenScroll.prototype.getScrollElePos=function(){
 			var _this = this;
		    _this.scrollElement.each(function(){
				_this.scrollPos.push($(this).offset().top);
		    });
 		}
	   FullScreenScroll.prototype.toScroll=function(){
 			var _this = this;
		    if(_this.isScroll) return;
		    var scrollPos = _this.scrollPos,
			   length = scrollPos.length,
			   winH = window.innerHeight,
			   thisPos = _this.scrollContent.scrollTop(),
			   step =Math.floor(thisPos/winH),
			   scrollDirection = "no";
		   if(thisPos > scrollPos[step] && thisPos <= (scrollPos[step]+20)){/* 判断向下滚动 */
			   scrollDirection = 1;
		   }else if(thisPos < (scrollPos[step+1]) && thisPos >= (scrollPos[step+1]-20)){/* 判断向上滚动 */
			   scrollDirection = 0;
		   }
		   if(scrollDirection != "no"){
			   _this.isScroll=true;
			   _this.scrollContent.stop().animate({scrollTop:scrollPos[step+scrollDirection]},400,"linear",function(){
			   	   _this.isScroll=false;
			   });  
		   }
	   }
	   return FullScreenScroll;
	})(jQuery,window);